import random
daizis = [[],[],[]]
balls = ['1','2','3','4','5','6','7','8','9']
for ball in balls:
    index = random.randint(0,2)
    daizis[index].append(ball)
i = 1
for daizi in daizis:
    print("袋子%d的个数为：%d"%(i,len(daizi)))
    i += 1
    for ball in daizi:
        print("%s"%ball,end='\t')
    print("\n")
